Integrating Codewright

Prerequisites

- SNiFF+ installed at your site.
- Codewright 5.0 installed at your site.
- For SNiFF+ to communicate with Codewright and vice-versa, the following file is needed

File | Description
cwsniff.dll | Distributed together with SNiFF+ and implements functions that send commands from Codewright to SNiFF+. This file is in %SNIFF_DIR%\integrations\codewright-5.0

Connecting Codewright to SNiFF+
To connect Codewright to SNiFF+, complete the following steps

| Note
| We assume that you installed Codewright in the following directory: C:\codewright

Copy the

cwsniff.dll file from
%SNIFF_DIR%\integrations\codewright-5.0 to C:\codewright
Make a backup of your old C:\codewright\cwright.ini file.
Copy the cwright.ini file from
%SNIFF_DIR%\integrations\codewright-5.0 to C:\codewright
If you want, merge your old cwright.ini file with the one supplied by us. See also Merging the old cwright.ini file with the new cwright.ini file
Make sure SNiFF+ can start Codewright by setting your PATH environment variable to:
PATH=%PATH%;C:\codewright

| Note
| You can have only one Codewright-SNiFF+ connection active at a given time.

Setting Codewright as your preferred editor

Start SNiFF+.
Choose Tools > Preferences in any open SNiFF+ tool.

In the Preferences dialog

Select the Tools > Source Editor node.
From the Current Editor drop-down, choose Codewright.
Press Ok.
SNiFF+ will now use Codewright for all editing requests.

Merging the old cwright.ini file with the new cwright.ini file
If you have already customized Codewright and don't want to lose the changes, merge the old cwright.ini file with the new one. To do so:

- Copy the lines that differ and paste them into the appropriate sections.
To simplify the merging process, lines relevant to the Codewright integration with SNiFF+ are "blocked" by special comment lines. This makes it easier to find the lines that Codewright needs to be able to communicate with SNiFF+.
These lines are enclosed in the following comment lines:

BEGIN_SNIFF_SPECIFIC
END_SNIFF_SPECIFIC

| Note
| Comments inside the SNiFF+ specific blocks explain problems which you might encounter when merging.